You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > Reverse Method > Matrix.Reverse Method ([In] TMtxVec, int, int, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.Reverse Method ([In] TMtxVec, int, int, int)

Reverse Matrix elements.

Syntax
C#
Visual Basic
public TMtxVec Reverse([In] TMtxVec Vec, int VecIndex, int Index, int Len);

The method reverses Vec Matrix elements from [VecIndex].. [VecIndex+Len-1] and stores them in the calling Matrix from [Index]...[Index+Len-1] by using the following equation: 

 

This overload reverses calling Matrix elements in-place.

var a: Matrix; begin a.SetIt(2,2,False,[1,2,3,4]); a.Reverse(0,2); // a = [2,1,3,4] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!